package com.business.user.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 会员充值订单 实体类
 * @author chenjiehong
 * @date 2019-11-29 14:28:27
 * @since 1.0
 */
@TableName(value = "member_order")
public class MemberOrder  {


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 
	 */
	@TableField(value = "user_id")
	private Integer userId; 

	/**
	 * 套餐类型
	 */
	@TableField(value = "package_id")
	private Integer packageId;

	/**
	 * 到期时间
	 */
	@TableField(value = "expire_time")
	private Date expireTime; 

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime; 

	/**
	 * 支付订单号
	 */
	@TableField(value = "pay_order_number")
	private String payOrderNumber; 

	/**
	 * 是否赠送
	 */
	@TableField(value = "is_gift")
	private int isGift; 
	// columns END

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }
	public Date getExpireTime() {
		return expireTime;
	}

    public void setExpireTime(Date expireTime) {
    	this.expireTime = expireTime;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	public String getPayOrderNumber() {
		return payOrderNumber;
	}

    public void setPayOrderNumber(String payOrderNumber) {
    	this.payOrderNumber = payOrderNumber;
    }
	public int getIsGift() {
		return isGift;
	}

    public void setIsGift(int isGift) {
    	this.isGift = isGift;
    }

	public Integer getPackageId() {
		return packageId;
	}

	public void setPackageId(Integer packageId) {
		this.packageId = packageId;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[userId:" + getUserId() + "]";
		log += "[packageId:" + getPackageId() + "]";
		log += "[expireTime:" + getExpireTime() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[payOrderNumber:" + getPayOrderNumber() + "]";
		log += "[isGift:" + getIsGift() + "]";
		return log;
	}
}